import React from 'react';
import ReactDOM from 'react-dom';

// import { Home } from './pages/Home';

// import Login from './pages/Login';

//  import { Home } from './pages/Home';

// import Deatils from './pages/Deatils';

// import { Route, BrowserRouter as Router,Redirect } from 'react-router-dom'

// import CompileRouter from "qf-router-config" //引入库

import { BrowserRouter} from "react-router-dom";

import Router from './router/Router'
 import { renderRoutes} from 'react-router-config';




//  renderRoutes(Router)

console.log(Router);
ReactDOM.render(
  // 组件检查
  <React.StrictMode>
    <BrowserRouter>
    {renderRoutes(Router,Router.routes)}
    </BrowserRouter>
    {/* <Home /> */}
  </React.StrictMode>,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals

